package com.suyafei.hot.controller;

import com.suyafei.hot.service.HotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: hot
 * @description
 * @author: luffy
 * @create: 2020-12-15 10:08
 */
@RestController
public class HotController {

    @Autowired
    private HotService hotService;
    @GetMapping("/hot")
    public String getHot() {
        String hotMsg = hotService.getHotMsg();
        return hotMsg;
    }
}
